package cn.edu.sgu.www.mhxysy.mapper.partner;

import cn.edu.sgu.www.mhxysy.vo.treegrid.PartnerSkillTreeGrid;
import cn.edu.sgu.www.mhxysy.entity.partner.PartnerSkill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface PartnerSkillMapper extends BaseMapper<PartnerSkill> {

    /**
     * 通过助战类型ID和助战技能类型查询助战技能列表
     * @param type 助战技能类型
     * @param partnerId 助战ID
     * @return List<PartnerSkillTreeGridVO>
     */
    List<PartnerSkillTreeGrid> selectByTypeAndPartnerId(
            @Param("partnerId") Integer partnerId,
            @Param("type") Integer type
    );
}